package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2024/11/5 9:03
 */

@Data
@TableName("tb_repair")
public class TbRepair implements Serializable {

    @TableId(value = "repair_id",type = IdType.AUTO)
    private Integer repairId;

    private String repairNo;
    private String deviceName;
    private Integer typeId;
    private String typeName;
    private Integer areaId;
    private String areaName;
    private String question;
    private String questionDesc;
    private String userMobile;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private Date askTime;

    private Integer userId;
    private String userName;
    private Integer repairStatus;
    private Integer repairUser;
    private String repairName;

    // 维修图片(多图)
    @TableField(exist = false)
    private List<String> imageList;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private Date createTime;
}
